Protect __release_resource against resources without parents
authorPhil Elwell <phil@raspberrypi.org>
Fri, 13 Mar 2015 12:43:36 +0000 (12:43 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Thu, 15 Feb 2018 17:28:00 +0000 (17:28 +0000)
commit55b885d5ed7d7ae41c393f601de68d99d1c5d0c1
tree4387c69b52272a7627af0e74b322c192f87a3ec6
parentde430440d932cadd4585c99ee1311b1e2e4aa997
Protect __release_resource against resources without parents

Without this patch, removing a device tree overlay can crash here.

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
kernel/resource.c